package com.example.springboot.mapper;

import com.example.springboot.pojo.Equipment;
import com.example.springboot.pojo.Workshop;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface WorkshopDao {
    void addWorkshop(Workshop workshop);
    Workshop queryById(int id);
    void deleteById(int id);
    List<Workshop> getWorkshopList();
    void updateById(Workshop workshop);
    List<Workshop> getWorkshopListByCondition(Map<String,String> map);
    List<Equipment> getEquipmentListById(int id);
}
